package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 user_people
 * 
 * @author ruoyi
 * @date 2023-09-21
 */
public class UserPeople extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 账号 */
    @Excel(name = "账号")
    private String userAccount;

    /** 密码 */
    @Excel(name = "密码")
    private String userPassword;

    /** 微信开放平台id */
    @Excel(name = "微信开放平台id")
    private String unionId;

    /** 公众号openId */
    @Excel(name = "公众号openId")
    private String mpOpenId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String userName;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String userAvatar;

    /** 用户简介 */
    @Excel(name = "用户简介")
    private String userProfile;

    /** 用户角色：user/admin/ban */
    @Excel(name = "用户角色：user/admin/ban")
    private String userRole;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Long isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserAccount(String userAccount) 
    {
        this.userAccount = userAccount;
    }

    public String getUserAccount() 
    {
        return userAccount;
    }
    public void setUserPassword(String userPassword) 
    {
        this.userPassword = userPassword;
    }

    public String getUserPassword() 
    {
        return userPassword;
    }
    public void setUnionId(String unionId) 
    {
        this.unionId = unionId;
    }

    public String getUnionId() 
    {
        return unionId;
    }
    public void setMpOpenId(String mpOpenId) 
    {
        this.mpOpenId = mpOpenId;
    }

    public String getMpOpenId() 
    {
        return mpOpenId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserAvatar(String userAvatar) 
    {
        this.userAvatar = userAvatar;
    }

    public String getUserAvatar() 
    {
        return userAvatar;
    }
    public void setUserProfile(String userProfile) 
    {
        this.userProfile = userProfile;
    }

    public String getUserProfile() 
    {
        return userProfile;
    }
    public void setUserRole(String userRole) 
    {
        this.userRole = userRole;
    }

    public String getUserRole() 
    {
        return userRole;
    }
    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userAccount", getUserAccount())
            .append("userPassword", getUserPassword())
            .append("unionId", getUnionId())
            .append("mpOpenId", getMpOpenId())
            .append("userName", getUserName())
            .append("userAvatar", getUserAvatar())
            .append("userProfile", getUserProfile())
            .append("userRole", getUserRole())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
